Skip to content

Fix --files arg being wrapped in spurious quotes in presubmit.js#34298

Merged
AlexeyBarabash merged 1 commit intomasterfrom
fix/presubmit-files-arg
Feb 28, 2026
Merged

Fix --files arg being wrapped in spurious quotes in presubmit.js#34298
AlexeyBarabash merged 1 commit intomasterfrom
fix/presubmit-files-arg

Conversation

@AlexeyBarabash
Copy link
Contributor

Resolves brave/brave-browser#53237

This PR fixes --files argument for npm run presubmit command.
The problem was that after passing the semicolon-separated list of paths - the first and the last args were missing from the actual checks.

Test plan:
on current master run

npm run presubmit -- --verbose --files "android/java/org/chromium/chrome/browser/password_manager/settings/PasswordSettings.java;android/java/org/chromium/chrome/browser/playlist/settings/BravePlaylistPreferences.java;android/java/org/chromium/chrome/browser/privacy/settings/BravePrivacySettings.java"

it should be displayed Found 3 file(s). and the warnings must be from 3 files.

@github-actions
Copy link
Contributor

📋 Code Owners Summary

1 file(s) changed, 1 with assigned owners

1 team(s) affected: @brave/build-commands-reviewers


Owners and Their Files

@brave/build-commands-reviewers — 1 file(s)

@github-actions
Copy link
Contributor

The security team is monitoring all repositories for certain keywords. This PR includes the word(s) "password" and so security team members have been added as reviewers to take a look.

No need to request a full security review at this stage, the security team will take a look shortly and either clear the label or request more information/changes.

Notifications have already been sent, but if this is blocking your merge feel free to reach out directly to the security team on Slack so that we can expedite this check.

Copy link
Member

@goodov goodov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it worked on windows, but I never tested it on other platforms. lgtm!

@AlexeyBarabash AlexeyBarabash merged commit 6d2275f into master Feb 28, 2026
23 checks passed
@AlexeyBarabash AlexeyBarabash deleted the fix/presubmit-files-arg branch February 28, 2026 19:05
@github-actions github-actions bot added this to the 1.89.x - Nightly milestone Feb 28, 2026
@brave-builds
Copy link
Collaborator

Released in v1.89.89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

npm run presubmit -- --files skips some from list

6 participants